package unit13;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ShuffleTest {
	public static void main(String[] args) {
		List<Integer> list=new ArrayList<>();
		for(int x=0;x<=49;x++){
			list.add(x);
		}
		int i=Collections.min(list);
		System.out.println(i);
		
		Collections.shuffle(list);
		List<Integer> winningCombination=list.subList(0, 6);
		Collections.sort(winningCombination);
		System.out.println(winningCombination);
	}
}
